function [time index mcell]=findEL1kMes(M,message)
%
% function [time index mcell]=findEL1kMes(M,message)
% M = el2mat_b2(file.edf);
% message='fixation'
%
%   index=(findincell(M.messages,message));
%   time =M.mestimes(index);
%   mcell=M.messages(index);
%
% presumes M.mestimes has already been adjusted in el2mat_b2
% 
if nargin<2
    help(mfilename)
    return
end
if isempty(findincell(M.messages,message))
    index=[];
    time=[];
    mcell={};
else
    index=(findincell(M.messages,message));
    time =M.mestimes(index);
    mcell=M.messages(index);
end